class CreateExpenses < ActiveRecord::Migration
  def self.up
    create_table :expenses, :force => true do |t|
      t.string :description, :null => false, :limit => 128
      t.float :amount, :null => false
      t.string :location, :null => true, :limit => 128
      t.text :note, :null => true

      t.references :user

      t.timestamps
    end
  end

  def self.down
    drop_table :expenses
  end
end
